package com.cr.admin.business.vip.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;

@Data
public class VipProfileParam {

    @ApiModelProperty("用户昵称")
    private String nickname;

    @Email(message = "用户邮箱格式错误")
    @ApiModelProperty("用户邮箱")
    private String email;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式错误")
    @ApiModelProperty("手机账号")
    private String phoneNum;

    @ApiModelProperty("性别（0男，1女，2未知）")
    private Integer gender;

}
